package org.callcenterkata;

import java.util.ArrayList;
import java.util.List;

import org.callcenterkata.dao.IToolSearchDao;
import org.callcenterkata.dao.Tool;

public class MockToolSearchDao implements IToolSearchDao {

	public List<Tool> findToolsByNameReturnValue = new ArrayList<Tool>();
	public String findToolsByNameParameterName = "";

	public List<Tool> findToolsByNicknameReturnValue = new ArrayList<Tool>();
	public String findToolsByNicknameParameterName = "";
	
	@Override
	public List<Tool> findToolsByName(String name) {
		findToolsByNameParameterName = name;
		return findToolsByNameReturnValue;
	}

	@Override
	public List<Tool> findToolsByNickname(String nickname) {
		findToolsByNicknameParameterName = nickname;
		return findToolsByNicknameReturnValue;
	}

	
}
